package com.yanlin.apidriver.remote;

import com.yanlin.internalcommon.dto.ResponseResult;
import com.yanlin.internalcommon.request.VerificationCodeDTO;
import com.yanlin.internalcommon.response.DriverUserExistsResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * <p>标题：ServiceDriverUserClient</p>
 * <p>功能：</p>
 * <p>
 * 其他说明：
 * </p>
 * <p>审核：</p>
 * <p>重构：</p>
 * <p>创建日期：2025-06-15 16:34</p>
 *
 * @author yanlin
 */
@FeignClient("service-driver-user")
public interface ServiceDriverUserClient {

    @RequestMapping(method = RequestMethod.GET, value = "/user-login")
    ResponseResult loginOrRegister(VerificationCodeDTO verificationCodeDTO);

    @GetMapping(value = "/check-driver/{driverPhone}")
    ResponseResult<DriverUserExistsResponse> checkDriver(@PathVariable String driverPhone);
}
